export class UaGinryuTimelineEntity {
  id?: number;

  type?: TimelineType;

  type2?: TimelineType;

  title?: string;

  content?: string;

  time?: string;

  mainOrder?: number;

  subOrder?: number;

  productInfo?: string;
  showInfo?: boolean;
  chinese?: boolean;
}

export enum TimelineType {
  // 卡表
  EVENT_SHEET = 'EVENT_SHEET',
  // 大型活动
  EVENT_CONF = 'EVENT_CONF',
  // 大型赛事
  EVENT_CHAM = 'EVENT_CHAM',
  // 发表会
  EVENT_LIVE = 'EVENT_LIVE',
  // 发售ST
  SALE_ST = 'SALE_ST',
  // 发售BT
  SALE_BT = 'SALE_BT',
  // 发售EX
  SALE_EX = 'SALE_EX',
  // 发售PR
  SALE_PR = 'SALE_PR',
  // 发售PC
  SALE_PC = 'SALE_PC',
}

export const TimelineTypeListLabelMap = {
  [TimelineType.EVENT_SHEET]: '禁限卡表',
  [TimelineType.EVENT_CONF]: '大型活动',
  [TimelineType.EVENT_CHAM]: '大型赛事',
  [TimelineType.EVENT_LIVE]: '发表会',
  [TimelineType.SALE_ST]: 'St预组发售',
  [TimelineType.SALE_BT]: 'Bt补充包发售',
  [TimelineType.SALE_EX]: 'Ex补充包发售',
  [TimelineType.SALE_PC]: 'Pc全闪包发售',
  [TimelineType.SALE_PR]: '特殊商品发售',
};

export const TimelineTypeOptions = [
  {
    label: TimelineTypeListLabelMap[TimelineType.EVENT_SHEET],
    value: TimelineType.EVENT_SHEET,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.EVENT_CONF],
    value: TimelineType.EVENT_CONF,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.EVENT_CHAM],
    value: TimelineType.EVENT_CHAM,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.EVENT_LIVE],
    value: TimelineType.EVENT_LIVE,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.SALE_ST],
    value: TimelineType.SALE_ST,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.SALE_BT],
    value: TimelineType.SALE_BT,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.SALE_EX],
    value: TimelineType.SALE_EX,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.SALE_PC],
    value: TimelineType.SALE_PC,
  },
  {
    label: TimelineTypeListLabelMap[TimelineType.SALE_PR],
    value: TimelineType.SALE_PR,
  },
];

export const TimelineTypeListColorMap = {
  [TimelineType.EVENT_SHEET]: 'rgba(245, 4, 31, 1)',
  [TimelineType.EVENT_CONF]: 'rgba(103, 100, 244, 1)',
  [TimelineType.EVENT_CHAM]: 'rgba(255, 40, 194, 1)',
  [TimelineType.EVENT_LIVE]: 'rgba(200, 73, 255, 1)',
  [TimelineType.SALE_ST]: 'rgba(200, 73, 255, 1)',
  [TimelineType.SALE_BT]: 'rgba(68, 142, 246, 1)',
  [TimelineType.SALE_EX]: 'rgba(68, 142, 246, 1)',
  [TimelineType.SALE_PC]: 'rgba(68, 142, 246, 1)',
  [TimelineType.SALE_PR]: 'rgba(68, 142, 246, 1)',
};

export const TimelineTypeListBgColorMap = {
  [TimelineType.EVENT_SHEET]: 'rgba(245, 4, 31, 0.15)',
  [TimelineType.EVENT_CONF]: 'rgba(103, 100, 244, 0.15)',
  [TimelineType.EVENT_CHAM]: 'rgba(255, 40, 194, 0.15)',
  [TimelineType.EVENT_LIVE]: 'rgba(200, 73, 255, 0.15)',
  [TimelineType.SALE_ST]: 'rgba(200, 73, 255, 0.15)',
  [TimelineType.SALE_BT]: 'rgba(68, 142, 246, 0.15)',
  [TimelineType.SALE_EX]: 'rgba(68, 142, 246, 0.15)',
  [TimelineType.SALE_PC]: 'rgba(68, 142, 246, 0.15)',
  [TimelineType.SALE_PR]: 'rgba(68, 142, 246, 0.15)',
};
